Optimal. Leaf size=24 \[ x (b B-a C)+\frac {b C \tanh ^{-1}(\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 48, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {24, 3770} \[ x (b B-a C)+\frac {b C \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 24
Rule 3770
Rubi steps
\begin {align*} \int \frac {a b B-a^2 C+b^2 B \sec (c+d x)+b^2 C \sec ^2(c+d x)}{a+b \sec (c+d x)} \, dx &=\frac {\int \left (b^2 (b B-a C)+b^3 C \sec (c+d x)\right ) \, dx}{b^2}\\ &=(b B-a C) x+(b C) \int \sec (c+d x) \, dx\\ &=(b B-a C) x+\frac {b C \tanh ^{-1}(\sin (c+d x))}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 23, normalized size = 0.96 \[ -a C x+b B x+\frac {b C \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 45, normalized size = 1.88 \[ -\frac {2 \, {\left (C a - B b\right )} d x - C b \log \left (\sin \left (d x + c\right ) + 1\right ) + C b \log \left (-\sin \left (d x + c\right ) + 1\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.26, size = 53, normalized size = 2.21 \[ \frac {C b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - C b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - {\left (C a - B b\right )} {\left (d x + c\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.60, size = 46, normalized size = 1.92 \[ B x b -a C x +\frac {B b c}{d}+\frac {C b \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{d}-\frac {C a c}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.22, size = 258, normalized size = 10.75 \[ \frac {2\,C\,b\,\mathrm {atanh}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {2\,B\,b\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,B^2\,b^2-2\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,B\,C\,a\,b+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,C^2\,a^2+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,C^2\,b^2}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (B^2\,b^2-2\,B\,C\,a\,b+C^2\,a^2+C^2\,b^2\right )}\right )}{d}-\frac {2\,C\,a\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,B^2\,b^2-2\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,B\,C\,a\,b+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,C^2\,a^2+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,C^2\,b^2}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (B^2\,b^2-2\,B\,C\,a\,b+C^2\,a^2+C^2\,b^2\right )}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.23, size = 73, normalized size = 3.04 \[ \begin {cases} \frac {B b \left (c + d x\right ) - C a \left (c + d x\right ) + C b \log {\left (\tan {\left (c + d x \right )} + \sec {\left (c + d x \right )} \right )}}{d} & \text {for}\: d \neq 0 \\\frac {x \left (B a b + B b^{2} \sec {\relax (c )} - C a^{2} + C b^{2} \sec ^{2}{\relax (c )}\right )}{a + b \sec {\relax (c )}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________